package game.wormgame.mrworm;


import game.wormgame.framework.Game;
import game.wormgame.framework.Graphics;
import game.wormgame.framework.Screen;
import game.wormgame.framework.Graphics.PixmapFormat;

public class LoadingScreen extends Screen
{

	public LoadingScreen(Game game)
	{
		super(game);
	}

	@Override
	public void update(float deltaTime) 
	{
		Graphics g = game.getGraphics();
		Assets.background = g.newPixmap("background.png", PixmapFormat.RGB565);
		Assets.logo = g.newPixmap("logo.png", PixmapFormat.ARGB4444);
		Assets.cat = g.newPixmap("cat.png", PixmapFormat.ARGB4444);
       	Assets.mainMenu = g.newPixmap("mainmenu.png", PixmapFormat.ARGB4444);
		Assets.buttons = g.newPixmap("buttons.png", PixmapFormat.ARGB4444);
		Assets.help1 = g.newPixmap("help1.png", PixmapFormat.ARGB4444);
		Assets.help2 = g.newPixmap("help2.png", PixmapFormat.ARGB4444);
		Assets.help3 = g.newPixmap("help3.png", PixmapFormat.ARGB4444);
		Assets.numbers = g.newPixmap("numbers.png", PixmapFormat.ARGB4444);
		Assets.high_scores = g.newPixmap("high_scores.png", PixmapFormat.ARGB4444);
		Assets.ready = g.newPixmap("ready.png", PixmapFormat.ARGB4444);
		Assets.clicktocontinue = g.newPixmap("continue.png", PixmapFormat.ARGB4444);
		Assets.pause = g.newPixmap("pausemenu.png", PixmapFormat.ARGB4444);
		Assets.gameOver = g.newPixmap("gameover.png", PixmapFormat.ARGB4444);
		Assets.headUp = g.newPixmap("headup.png", PixmapFormat.ARGB4444);
		Assets.headLeft = g.newPixmap("headleft.png", PixmapFormat.ARGB4444);
		Assets.headDown = g.newPixmap("headdown.png", PixmapFormat.ARGB4444);
		Assets.headRight = g.newPixmap("headright.png", PixmapFormat.ARGB4444);
		Assets.tail = g.newPixmap("tail.png", PixmapFormat.ARGB4444);
		Assets.stain1 = g.newPixmap("stain1.png", PixmapFormat.ARGB4444);
		Assets.stain2 = g.newPixmap("stain2.png", PixmapFormat.ARGB4444);
		Assets.stain3 = g.newPixmap("stain3.png", PixmapFormat.ARGB4444);
		Assets.mouse1 = g.newPixmap("mouse_1.png", PixmapFormat.ARGB4444);
		Assets.bowl = g.newPixmap("bowl.png", PixmapFormat.ARGB4444);
		Assets.yarn = g.newPixmap("yarn.png", PixmapFormat.ARGB4444);
		Assets.click = game.getAudio().newSound("click.ogg");
		Assets.meow = game.getAudio().newSound("meow.ogg");
		Assets.eat = game.getAudio().newSound("eat.ogg");
		Assets.bitten = game.getAudio().newSound("bitten.ogg");
		Settings.load(game.getFileIO());
		game.setScreen(new MainMenuScreen(game));		
	}

	@Override
	public void present(float deltaTime)
	{
		
		
	}

	@Override
	public void pause()
	{
		
		
	}

	@Override
	public void resume()
	{
		
		
	}

	@Override
	public void dispose()
	{
		
		
	}
	
	
	
}
